$(function(){
	var wHeight=document.documentElement.clientHeight;
	var bHeight=$('html').height();
	console.log(bHeight)
	if(wHeight<bHeight){
		$(".patient-start").css("position","relative");
		$(".patient-detailFont").css("margin-bottom","0.6rem");
	}
	intGetEvaluatingAnswer();
	function intGetEvaluatingAnswer(){
		var EvaluatingId =utilModule.getQueryString("id");
		var score =utilModule.getQueryString("score");
		var param = {"EvaluatingId":EvaluatingId,"score":score};
		patientTestmodule.getEvaluatingAnswer(param,callbackAnswer);
		/*添加自测结果到,我的*/
		var param = {"EvaluatingId":EvaluatingId,"score":score,'patientid':USERID};
		patientTestmodule.addEvaluatingAnswer(param,callbackAnswer1);
		function callbackAnswer1(data){
			console.log(data);
		}
		function callbackAnswer(data){
			console.log(data);
			var html =  '<div class="patient-detailNumber">'+
				    		'<h1>'+score+'</h1>'+
				    	'</div>'+
				    	'<div class="patient-detailText font5">'+
				    		'您在<span>'+data.picurl+'</span>得分<font>'+score+'</font>分'+
				    	'</div>'+
				    	'<div class="patient-detailText font5">'+
				    		'我的状态：<span> '+data.title+'</span>'+
				    	'</div>'+
				    	'<div class="patient-detailFont font3">'+data.explain+
				    		'去<a href="../article/article-list.html">精彩文章</a>'+
				    	'</div>'+
						'<div class="patient-start">'+
							'<button data-url ="./patient-test.html" class="clickIN">重新测试</button>'+
							'<p class="font1">此测试仅供参考，不做诊断标准</p>'+
						'</div>';
			$("body").empty();
			$("body").append(html);
		}
		sessionStorage.setItem("status", "0"); 
	}
	/*绑定 点击 进入详情*/
	$(".clickIN").on("click",function(){
		var herf = $(this).data("url");
		sessionStorage.removeItem("status");
		mui.openWindow({
			url:herf,
		});
		
	});
	
	
	
});
